package com.wishtree;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @Author parkin
 * @Date 2021/11/2 10:53
 * @Version 2.0
 * @Description
 */
@SpringBootApplication(scanBasePackages = "com")
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)
public class WishApplication {
    public static void main(String[] args) {
       /* new SpringApplicationBuilder().web(WebApplicationType.REACTIVE)
                .sources(WishApplication.class)
                .run(args);*/
        SpringApplication.run(WishApplication.class);
    }
}
